﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDShop.Entities;
using BDShop.Framework.Caching;
using BDShop.Configuration;
using BDShop.Framework;

namespace BDShop.Business.Cache
{
    public class ConfigCache : BaseCache<List<Config>>
    {
        public ConfigCache()
            : base(BDShopConfiguration.Cache.CacheConfig, ConfigService.GetListConfigCacheModel, true, CacheManager.GetFilePathFO(CacheEnum.config))
        {
            
        }

        public static ConfigCache Instance
        {
            get
            {
                return SingletonBase<ConfigCache>.Instance;
            }
        }
    }
}
